<div class="forum-path"> 
<?php echo $this->Html->link('Forum index', array('controller' => 'forums', 'action' => 'index')); ?> » 
<?php echo $this->Html->link($forumName, array('controller' => 'forums', 'action' => 'view', $forumId)); ?> 
</div>
<h3>Add new topic</h3>

<br/>
<div class="row-fluid " >
    <div class="span12">
        <div class="span1"></div>
        <div class="span8">
            
            <?php echo $this->Form->create('ForumTopic', array('url'=> array('controller'=>'forums','action'=>'newtopic',$forumId),'class'=>'form-horizontal well')); ?>
            <div class="control-group">
                <?php /*echo $this->Form->hidden('ForumTopic.forum_categories',array('value'=>$this->params['pass'][0])); */?>  
                <label class="control-label">Subject</label>
                <?php echo $this->Form->input('ForumTopic.subject',array('label'=>false,'div'=>'controls')); ?>
                <p class="text-error">
                            <?php echo $this->Form->error('ForumTopic.subject', 'Subject is required!'); ?>
                </p>
                </div>
            <div class="control-group">
                <label class="control-label">Message</label>
                <?php echo $this->Form->input('ForumTopic.text', array('rows' => 10,'label'=>false,'div'=>'controls')); ?>
                <p class="text-error">
                            <?php echo $this->Form->error('ForumTopic.text', 'Message is required'); ?>
                </p>
                </div>
                <div class="control-group" align="center">

                            <button type="submit" class="btn btn-primary">Save</button>
                </div>
                </form>
            <?php //echo $form->end('ForumTopic'); ?>
            
        </div>
        <div class="span3"></div>
    </div>
</div>





